import request from "@/api/request";
import { type AxiosRequestConfig } from "axios";
import { type DeepRequired } from "../../interface";

/**
 * /paymentProduct/uploadExcel
 */
export function postPaymentProductUploadExcel(params: PostPaymentProductUploadExcelParams, input?: PostPaymentProductUploadExcelInput, config?: AxiosRequestConfig) {
    const paramsInput = {
        contractId: params.contractId,
    };
    return request.post<DeepRequired<any>>(`/paymentProduct/uploadExcel`, input, {
        params: paramsInput,
        ...config,
    });
}

export interface PostPaymentProductUploadExcelParams {
    contractId: number;
}

export interface PostPaymentProductUploadExcelInput {
    file: File;
}
